<?php
/* 
 * ebiz front
 * 
 * exchange center View
 * 
 * @author allen
 * 
 */
?>
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml'>
    <head>
        <meta content='text/html; charset=utf-8' http-equiv='Content-Type' />
        <title>兑换明细-阿基米米网上商城</title>
        <script type='text/javascript' language='javascript' src='//<?php echo ConfigConstants::$iConstants.".".DOMAIN; ?>/n/javascript/lib/jquery.js'></script>
        <script type='text/javascript' language='javascript' src='//<?php echo ConfigConstants::$iConstants.".".DOMAIN; ?>/n/javascript/lib/jquery-ui-datepicker.js'></script>
        <script type='text/javascript' language='javascript' src='//<?php echo ConfigConstants::$iConstants.".".DOMAIN; ?>/n/javascript/frontend.js'></script>
        <script type='text/javascript' language='javascript' src='//<?php echo ConfigConstants::$iConstants.".".DOMAIN; ?>/t/<?php echo $GLOBALS["config"]['template_name']; ?>/javascript/akimimi.js'></script>
        <link href='//<?php echo ConfigConstants::$iConstants.".".DOMAIN; ?>/t/<?php echo $GLOBALS["config"]['template_name']; ?>/css/style.css' rel='stylesheet' type='text/css' />   
        <link href='//<?php echo ConfigConstants::$iConstants.".".DOMAIN; ?>/t/<?php echo $GLOBALS["config"]['template_name']; ?>/css/default.css' rel='stylesheet' type='text/css' />
        <link href='//<?php echo ConfigConstants::$iConstants.".".DOMAIN; ?>/t/<?php echo $GLOBALS["config"]['template_name']; ?>/css/myaccountleftnav.css' rel='stylesheet' type='text/css' />
        <link href='//<?php echo ConfigConstants::$iConstants.".".DOMAIN; ?>/t/<?php echo $GLOBALS["config"]['template_name']; ?>/css/myaccount.css' rel='stylesheet' type='text/css' />                  
        <link href='//<?php echo ConfigConstants::$iConstants.".".DOMAIN; ?>/t/<?php echo $GLOBALS["config"]['template_name']; ?>/css/headerAndFooter.css' rel='stylesheet' type='text/css' />
    </head>
    <body>
        <?php 
            require_once '../app/views/HeaderView.php';
            echo HeaderView::getCommonHeaderView();
        ?>
        <div id="navigation">
            <a href="/">首页</a>
            <span>></span>
            <a href="/userinfo/index">我的阿基米米</a>
             > 兑换信息列表
        </div>
        <div id="mymimi_body">
        <?php 
            require_once '../app/views/MyAccoutLeftNavView.php';
            echo MyAccountLeftNav::getMyAccountLeftNav();
        ?>
        <div id="mymimi_right">
        <div class="right_bj"></div>
        <div class="add_border">
	        
            <!-- begin -->
            <form method="post" id="exchangeForm" >
		    <div class="exchange_content">
		        
		        <div class="exchangx_part">
		            <!--兑换列表开始-->
		            <div class="exchangx_content_part">
		                <div class="exchangx_content" id="exchangxGift">
                            <div class="exchange_title">
                                <div style="float:left;margin-left:80px;margin-top:8px;color:#000000;font-weight:bold;">兑换信息名称</div>
                                <div style="float:left;margin-left:80px;margin-top:8px;color:#000000;font-weight:bold;">所需积分</div>
                                <div style="float:left;margin-left:50px;margin-top:8px;color:#000000;font-weight:bold;">当前兑换积分</div>
                                <div style="float:left;margin-left:50px;margin-top:8px;color:#000000;font-weight:bold;">晋级积分</div>
                                <div style="float:left;margin-left:60px;margin-top:8px;color:#000000;font-weight:bold;">兑换时间</div>
                                <div style="float:left;margin-left:80px;margin-top:8px;color:#000000;font-weight:bold;">操作</div>
                                <div class="clear"></div>
                            </div>
                            
                            <div id="paginate">
                        <!-- 列表信息开始 -->
                            <?php 
                                foreach ($exchangeInfo as $exchangeItem) {
                            ?>
                            <div class="exchange_item">
                                <div style="float:left;margin-left:10px;text-align:center;width:220px;height:30px;line-height:30px;">
                                    <label title="<?php echo $exchangeItem["title"];?>"><?php echo CommonUtil::sysSubStr($exchangeItem["title"], 30, true);?></label>
                                </div>
                                <div style="float:left;;text-align:center;width:60px;height:30px;line-height:30px;">
                                    <?php echo $exchangeItem["points"];?>
                                </div>
                                <div style="float:left;text-align:center;width:100px;margin-left:30px;height:30px;line-height:30px;">
                                    <?php echo $exchangeItem["current_exhaust_points"];?>
                                </div>
                                <div style="float:left;text-align:center;width:80px;margin-left:30px;height:30px;line-height:30px;">
                                    <?php echo $exchangeItem["current_ac_points"];?>
                                </div>
                                <div style="float:left;text-align:center;width:150px;margin-left:10px;height:30px;line-height:30px;">
                                    <?php echo $exchangeItem["created"];?>
                                </div>
                                <div style="float:left;margin-left:24px;height:25px;line-height:25px;">
                                    <!-- 
                                    <input type="button" value="查看" onclick="window.open('/userinfo/giftdetail?id=<?php echo $exchangeItem["id"]; ?>');" />
                                    -->
                                    <a style="text-decoration:none;" href="/userinfo/giftdetail?id=<?php echo $exchangeItem["id"]; ?>">详情</a>
                                </div>
                                <div class="clear"></div>
                            </div>
                            <?php 
                                }
                            ?>
                        <!-- 列表信息结束 -->
                        
                        <!-- 分页开始 -->
                            <div class='p2_page'><?php echo $headerPaginate; ?></div>
                        <!-- 分页结束 -->
                        
                            </div>
		                </div>
		            </div>
		            <!--选择兑换内容结束-->
		        </div>
		    </div>
		    </form>	    
            <!-- end -->
            </div> 
          </div>
          <?php 
            require_once '../app/views/FooterView.php';
            echo FooterView::getCommonFooterView();
         ?>   
         
         
            
            
    </body>
</html>